package com.cotte.flow.task;

import com.cotte.flow.service.GraphTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by zhuang on 2019/1/2.
 */
@Component
public class Graph {

    @Autowired
    GraphTableService graphTableService;

//    @Scheduled(cron = "0 0 1 * * ?")
    public void scheduled(){
        graphTableService.countYestdayData();
    }

}
